package cn.iocoder.yudao.module.lowcode.controller.admin.script.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.Map;

@Schema(description = "管理后台 - Groovy 脚本执行 Request VO")
@Data
public class GroovyScriptExecuteReqVO {

    @Schema(description = "脚本名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "test_script")
    @NotEmpty(message = "脚本名称不能为空")
    @Size(max = 50, message = "脚本名称长度不能超过50个字符")
    private String scriptName;

    @Schema(description = "执行参数", example = "{\"param1\": \"value1\", \"param2\": 123}")
    private Map<String, Object> parameters;

}